package com.qlyl.modules.information.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qlyl.modules.information.entity.AppUser;
import org.apache.ibatis.annotations.Param;

public interface AppUserMapper extends BaseMapper<AppUser> {

    /**
     * 通过用户名查询用户信息
     *
     * @param username
     * @return
     */
    public AppUser getAppUserByName(@Param("username") String username);

    /**
     * 根据手机号查询用户信息
     *
     * @param cphone
     * @return
     */
    public AppUser getAppUserByPhone(@Param("cphone") String cphone);

    /**
     * 根据邮箱查询用户信息
     *
     * @param email
     * @return
     */
    public AppUser getAppUserByEmail(@Param("email") String email);


}
